﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WebMassage.Models.PageInfo>" %>

<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Tạo mới trang
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div style="padding: 10px;">
        <h2>
            Tạo mới trang</h2>
        <br />
        <form id="aspnet" runat="server">
        <% using (Html.BeginForm())
           {%>
        <fieldset style="padding: 10px;">
            <div class="editor-label">
                Tiêu đề:
                <%= Html.TextBoxFor(model => model.Title, new { style = "width:70%" })%>
            </div>
            <div class="editor-label">
                Body:
            </div>
            <div class="editor-field">
                <CKEditor:CKEditorControl ID="Content" runat="server" ClientIDMode="Inherit">
                </CKEditor:CKEditorControl>
            </div>
            <div class="editor-label">
                Nhóm :
                <%= Html.TextBoxFor(model => model.Group) %>
            </div>
            <div class="editor-label">
                Thứ tự hiển thị:
                <%= Html.TextBoxFor(model => model.Order) %>
            </div>
            <p>
                <input type="submit" value="Tạo" />
            </p>
        </fieldset>
        <% } %>
        </form>
        <div style="padding-top: 20px">
            <%= Html.ActionLink("Trở về danh sách", "Manager") %>
        </div>
    </div>
</asp:Content>
